<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>prototypes.js学习</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="js/prototypes.js"></script>
    <style>
        div{
            margin:0;
            padding:5px;
        }
    </style>
</head>
<script>
    var root_el;
    function print(text, ...args){
        let el = document.createElement('div');
        el.innerText = text;
        root_el.appendChild(el);
    }
    window.onload = function(){
        root_el = document.getElementById('root');
        for (prop in Prototype){
            print(`${prop}: ${Prototype[prop]}`);
        }
    }
</script>
<body>
    <div id='root'></div>
</body>
</html>